<%@ page contentType="text/html;charset=euc-kr" %>
<%@ page import = "net.admin.db.qna.QnABean" %>
<%@ page import = "net.admin.db.qna.QnADAO" %>
<%@ page import = "java.sql.Timestamp" %>

<% request.setCharacterEncoding("euc-kr");%>

<jsp:useBean id="article" scope="page" class="net.admin.db.qna.QnABean">
   <jsp:setProperty name="article" property="*"/>
</jsp:useBean>

<%
    article.setReg_date(new Timestamp(System.currentTimeMillis()) );
	article.setIp(request.getRemoteAddr());

	QnADAO dbPro = new QnADAO();
    dbPro.writeQnA(article);

    response.sendRedirect("qna_list.jsp");
%>